﻿using System;

namespace afirewall.core
{
    internal class CacheBag<T>
    {
        public T data { get; set; }
        public DateTime cache_time { get; set; }
        public string ip { get; set; }
        public static CacheBag<T> New(T value)
        {
            return new CacheBag<T> { data = value, cache_time = DateTime.UtcNow };
        }
    }
}
